package com.zzyl.serve.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzyl.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;



/**
 * 查询报警数据Vo
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AlertDataVo {
   @ApiModelProperty(value = "创建人")
   private String createBy;

   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
   @ApiModelProperty(value = "创建时间")
   private LocalDateTime createTime;

   @ApiModelProperty(value = "更新人")
   private String updateBy;

   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
   @ApiModelProperty(value = "更新时间")
   private LocalDateTime updateTime;

   @ApiModelProperty(value = "备注")
   private String remark;

   @ApiModelProperty(value = "ID")
   private Integer id;

   @ApiModelProperty(value = "物联网ID")
   private String iotId;

   @ApiModelProperty(value = "设备名称")
   private String deviceName;

   @ApiModelProperty(value = "昵称")
   private String nickname;

   @ApiModelProperty(value = "产品密钥")
   private String productKey;

   @ApiModelProperty(value = "产品名称")
   private String productName;

   @ApiModelProperty(value = "功能ID")
   private String functionId;

   @ApiModelProperty(value = "访问位置")
   private String accessLocation;

   @ApiModelProperty(value = "位置类型")
   private Integer locationType;

   @ApiModelProperty(value = "物理位置类型")
   private Integer physicalLocationType;

   @Excel(name = "位置备注")
   @ApiModelProperty(value = "位置备注")
   private String deviceDescription;

   @ApiModelProperty(value = "数据值")
   private Integer dataValue;

   @ApiModelProperty(value = "报警规则ID")
   private Integer alertRuleId;

   @ApiModelProperty(value = "报警原因")
   private String alertReason;

   @Excel(name = "处理结果")
   @ApiModelProperty(value = "处理结果")
   private String processingResult;

   @Excel(name = "处理人id")
   @ApiModelProperty(value = "处理人ID")
   private Long processorId;

   @Excel(name = "处理人名称")
   @ApiModelProperty(value = "处理人名称")
   private String processorName;

   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")//时间格式化
   @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
   @ApiModelProperty(value = "处理时间")
   private LocalDateTime processingTime;

   @ApiModelProperty(value = "类型")
   private Integer type;

   @ApiModelProperty(value = "状态")
   private Integer status;

   @ApiModelProperty(value = "用户ID")
   private Integer userId;
}

